#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "qtoolgraphicsscene.h"
#include "qcurvetool.h"
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    QToolGraphicsScene *scene=new QToolGraphicsScene(0,0,400,400);
    ui->graphicsView->setScene(scene);
    QMyTool * tool=new QCurveTool();
    tool->SetContainer(scene);
    scene->AddTool("curve",tool);
    scene->SetCurrentTool("curve");
}

MainWindow::~MainWindow()
{
    delete ui;
}
